import http from './index'

// 商品分类列表
export const getSideBar = () => http.get('/pro/categorylist')

// 获取对应分类产品 /pro/categorybrandlist
export const getCateList = (category: string) => http.get('/pro/categorybrandlist?category=' + category)

// 分类下某品牌产品列表.
export const getBrandList = (category: string, brand: string) => http.get('/pro/categorybrandprolist', {
  params: {
    category,
    brand
  }
})

// 商品详细信息
export const getGoodInfo = (proid: string) => http.get('/pro/detail/' + proid)